﻿// /*------------------------------------------------------------
// 工程名:    EnsembleLauncher
// 文件名:    SafeNativeMethods.cs
// 编写人:    yhh
// 编写日期: 下午 8:52
// -------------------------------------------------------------*/

using System;

namespace EnsembleLauncher
{
    internal static class SafeNativeMethods
    {
        private static void _AllocConsole()
        {
            NativeMethods.AllocConsole();
        }

        public static void AllocConsole()
        {
            try
            {
                _AllocConsole();
            }
            catch (Exception)
            {
                // ignored
            }
        }
    }
}